﻿<UserControl x:Class="com.bodurov.ColorMapVisualizer.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="780" Height="450">
    <Grid x:Name="LayoutRoot" Background="White">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="600"/>
			<ColumnDefinition Width="180"/>
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="450" />
		</Grid.RowDefinitions>
		<Canvas x:Name="GraphContainer" Grid.Column="0" Grid.Row="0">
		</Canvas>
		<Canvas x:Name="ControlContainer" Grid.Column="1" Grid.Row="0" Grid.RowSpan="2" Background="#E1E1E1">
			<TextBlock Text="beginning" Foreground="Gray" Canvas.Top="5" Canvas.Left="28" Visibility="Collapsed" />
			<TextBlock Text="end" Foreground="Gray" Canvas.Top="5" Canvas.Left="120" Visibility="Collapsed" />
			<TextBlock Text="X" Canvas.Top="30" Canvas.Left="8" Visibility="Collapsed" />
			<TextBox x:Name="VectorX1" Text="0" TabIndex="0" Visibility="Collapsed" 
				TextAlignment="Right" Width="70" 
				Canvas.Top="25" Canvas.Left="20" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
			<TextBox x:Name="VectorX2" Text="5" TabIndex="3" Visibility="Collapsed"
				TextAlignment="Right" Width="70" 
				Canvas.Top="25" Canvas.Left="95" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
			<TextBlock Text="Y" Canvas.Top="60" Canvas.Left="8" Visibility="Collapsed" />
			<TextBox x:Name="VectorY1" Text="0" TabIndex="1" Visibility="Collapsed" 
				TextAlignment="Right" Width="70" 
				Canvas.Top="55" Canvas.Left="20" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
			<TextBox x:Name="VectorY2" Text="5" TabIndex="4" Visibility="Collapsed"
				TextAlignment="Right" Width="70" 
				Canvas.Top="55" Canvas.Left="95" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
			<TextBlock Text="Z" Canvas.Top="90" Canvas.Left="8" Visibility="Collapsed" />
			<TextBox x:Name="VectorZ1" Text="0" TabIndex="2"  Visibility="Collapsed"
				TextAlignment="Right" Width="70" 
				Canvas.Top="85" Canvas.Left="20" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
			<TextBox x:Name="VectorZ2" Text="5" TabIndex="5" Visibility="Collapsed"
				TextAlignment="Right" Width="70" 
				Canvas.Top="85" Canvas.Left="95" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
			<Button x:Name="AddVectorBtn" TabIndex="6" Content="add new vector" Visibility="Collapsed"
				Canvas.Top="115" Canvas.Left="20" Width="130"
				Click="AddVectorBtn_Click" />


			<TextBlock Text="X" Canvas.Top="150" Canvas.Left="8" />
			<TextBox x:Name="NullVectorX" Text="1" TabIndex="7"
				TextAlignment="Right" 
				Width="30" 
				Canvas.Top="145" Canvas.Left="20" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
				
			<TextBlock Text="Y" Canvas.Top="150" Canvas.Left="60" />
			<TextBox x:Name="NullVectorY" Text="2" TabIndex="8"
				TextAlignment="Right" 
				Width="30" 
				Canvas.Top="145" Canvas.Left="70" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />
				
			<TextBlock Text="Z" Canvas.Top="150" Canvas.Left="110" />
			<TextBox x:Name="NullVectorZ" Text="3" TabIndex="9"
				TextAlignment="Right" 
				Width="30" 
				Canvas.Top="145" Canvas.Left="120" 
				TextChanged="Vector_TextChanged" 
				KeyUp="Vector_KeyUp" />

			<Button x:Name="AddNullVectorBtn" TabIndex="10" Content="add point"
				Canvas.Top="175" Canvas.Left="20" Width="130"
				Click="AddNullVectorBtn_Click" />


			<Button x:Name="ClearAllBtn" TabIndex="11" Content="clear all"
				Canvas.Top="205" Canvas.Left="20" Width="130"
				Click="ClearAllBtn_Click" />
			
			<TextBlock Text="axes relative to the observer" Foreground="Gray" 
				Canvas.Top="270" Canvas.Left="10" />
			<TextBlock Text="X" Canvas.Top="292" Canvas.Left="8" />
			<Slider x:Name="SliderX" 
				Canvas.Top="290" 
				Canvas.Left="20" 
				Width="150" 
				ValueChanged="SliderX_ValueChanged" 
				MouseEnter="SliderX_MouseEnter" />
			<TextBlock Text="Y" Canvas.Top="322" Canvas.Left="8" />
			<Slider x:Name="SliderY" 
				Canvas.Top="320" 
				Canvas.Left="20" 
				Width="150" 
				ValueChanged="SliderY_ValueChanged" 
				MouseEnter="SliderY_MouseEnter" />
			<TextBlock Text="Z" Canvas.Top="352" Canvas.Left="8" />
			<Slider x:Name="SliderZ" 
				Canvas.Top="352" 
				Canvas.Left="20" 
				Width="150"
				ValueChanged="SliderZ_ValueChanged" 
				MouseEnter="SliderZ_MouseEnter" />

			<TextBlock Text="X" Canvas.Top="385" Canvas.Left="8" />
			<TextBox x:Name="DegreesX" Text="0" 
				TextAlignment="Right" TabIndex="12"
				Width="30" 
				Canvas.Top="380" 
				Canvas.Left="20" 
				LostFocus="DegreesX_LostFocus" 
				KeyUp="DegreesX_KeyUp" />
			<TextBlock Text="Y" Canvas.Top="385" Canvas.Left="60" />
			<TextBox x:Name="DegreesY" Text="0" 
				TextAlignment="Right" TabIndex="13" 
				Width="30" 
				Canvas.Top="380" Canvas.Left="70" 
				LostFocus="DegreesY_LostFocus" 
				KeyUp="DegreesY_KeyUp" />
			<TextBlock Text="Z" Canvas.Top="385" Canvas.Left="110" />
			<TextBox x:Name="DegreesZ" Text="0" 
				TextAlignment="Right" TabIndex="14"
				Width="30" 
				Canvas.Top="380" Canvas.Left="120" 
				LostFocus="DegreesZ_LostFocus" 
				KeyUp="DegreesZ_KeyUp" />

			<Button x:Name="ResetBtn" Content="center" TabIndex="15" 
				Width="130" Canvas.Top="410" Canvas.Left="20" 
				Click="ResetBtn_Click" />
		
			
		
		</Canvas>
    </Grid>
</UserControl>
